FROM openjdk:17

COPY springboot.jar /data/webapps/springboot.jar

ENV TIMEZONE=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone

CMD java -jar /data/webapps/springboot.jar --logging.path=/data/logs --logging.level.root=info

EXPOSE 8081 8081